(self.AMP=self.AMP||[]).push({n:"amp-form",v:"2102130314001",m:0,f:(function(AMP,_){ 'use strict';var m,aa="function"==typeof Object.create?Object.create:function(a){function b(){}b.prototype=a;return new b};function ba(a){for(var b=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global],c=0;ca.clientHeight})}function Za(a){H(a,function(b){"TEXTAREA"==b.tagName&&b.hasAttribute("autoexpand")&&Xa(b)})} function Ya(a){var b=I(a);Promise.all([b.measureElement(function(){return a.scrollHeight}),Ua(a)]).then(function(c){var d=c[0],e=0;return b.measureMutateElement(a,function(){e=a.scrollHeight},function(){d!=e&&a.removeAttribute("autoexpand")})})} function Xa(a){var b=I(a),c=a.ownerDocument.defaultView,d=0,e=0,f=0,g=cb(a);b.measureMutateElement(a,function(){var h=c.getComputedStyle(a)||F();e=a.scrollHeight;var k=parseInt(h.getPropertyValue("max-height"),10);f=isNaN(k)?Infinity:k;d="content-box"==h.getPropertyValue("box-sizing")?-parseInt(h.getPropertyValue("padding-top"),10)+-parseInt(h.getPropertyValue("padding-bottom"),10):parseInt(h.getPropertyValue("border-top-width"),10)+parseInt(h.getPropertyValue("border-bottom-width"),10)},function(){return g.then(function(h){a.classList.toggle("i-amphtml-textarea-max", h+d>f);var k="iAmphtmlHasExpanded"in a.dataset,l=/google/i.test(c.navigator.vendor)?3:0;if(k||e<=h+l)a.dataset.iAmphtmlHasExpanded="",Na(a,"height",h+d+"px")})})} function cb(a){var b=a.ownerDocument,c=b.defaultView,d=b.body,e=I(a),f=a.cloneNode(!1);f.classList.add("i-amphtml-textarea-clone");var g=0,h=0,k=!1;return e.measureMutateElement(d,function(){var l=c.getComputedStyle(a)||F(),n=parseInt(l.getPropertyValue("max-height"),10);g=parseInt(l.getPropertyValue("width"),10);k=isNaN(n)||a.scrollHeight [i-amphtml-rendered]".replace(/^|,/g,"$&:scope ")):(d.classList.add("i-amphtml-scoped"),e="> [i-amphtml-rendered]".replace(/^|,/g, "$&.i-amphtml-scoped "),e=d.querySelectorAll(e),d.classList.remove("i-amphtml-scoped"),d=void 0===e[0]?null:e[0]);d&&d.parentElement&&d.parentElement.removeChild(d)}a.K=b} function Z(a,b){Array.isArray(b)&&(b={},t().warn("amp-form","Unexpected data type: "+b+". Expected non JSON array."));var c=a.h.querySelector("["+a.K+"]"),d=q();if(c){var e="rendered-message-"+a.na;c.setAttribute("role","alert");c.setAttribute("aria-labeledby",e);c.setAttribute("aria-live","assertive");a.C.hasTemplate(c)?d=a.V.applySsrOrCsrTemplate(c,b).then(function(f){if(Array.isArray(f))if(1===f.length)var g=f[0];else g=document.createElement("div"),f.forEach(function(h){return g.appendChild(h)}); else g=f;g.id=e;g.setAttribute("i-amphtml-rendered","");return a.va.mutateElement(c,function(){c.appendChild(g);var h=Ra(a.j,"amp:dom-update",null,{bubbles:!0});c.dispatchEvent(h)})}):a.va.mutateElement(c,function(){})}return d} function qc(a){if(!Gb(a.j.location)&&a.h.hasAttribute("data-initialize-from-url")){var b=["SELECT","TEXTAREA"],c="color date datetime-local email hidden month number range search tel text time url week".split(" "),d=["checkbox","radio"],e=function(g,h){if(!g.hasAttribute("data-amp-replace")&&g.hasAttribute("data-allow-initialization")){h=f[h]||"";var k=g.getAttribute("type")||"text",l=g.tagName;"INPUT"===l?c.includes(k.toLocaleLowerCase())?g.value!==h&&(g.value=h):d.includes(k)&&(h=g.value===h,g.checked!== h&&(g.checked=h)):b.includes(l)&&g.value!==h&&(g.value=h)}},f=ma(a.j.location.search);Object.keys(f).forEach(function(g){var h=a.h.elements[g];h&&(h.nodeType===Node.ELEMENT_NODE?e(h,g):h.length&&H(h,function(k){return e(k,g)}))})}}m.Xa=function(){return this.Na};m.Za=function(){return this.Va};function Rc(a){var b=a.querySelectorAll("input,select,textarea,fieldset");H(b,function(c){return Sc(c)});return Sc(a)} function Bc(a){var b=document.createElement("input"),c={},d;for(d in b.validity){c.aa=d;var e=a.querySelectorAll("."+String(c.aa).replace(Da,Ea));H(e,function(f){return function(g){g.classList.remove(f.aa)}}(c));c={aa:c.aa}}} function Sc(a,b){var c=b=void 0===b?!1:b;if(!a.checkValidity)return!0;var d=!1;var e=a.classList.contains("user-valid")?"valid":a.classList.contains("user-invalid")?"invalid":"none";var f=a.checkValidity();"valid"!=e&&f?(a.classList.add("user-valid"),a.classList.remove("user-invalid"),d="invalid"==e):"invalid"==e||f||(a.classList.add("user-invalid"),a.classList.remove("user-valid"),d=!0);if(a.validity)for(var g in a.validity)a.classList.toggle(g,a.validity[g]);if(c&&d){e=Ja(a);for(g=0;g